<%@page language="java" pageEncoding="UTF-8"%>
<%@include file="/views/common/include/taglib.jsp"%>
<link type="text/css" rel="stylesheet"
	href="${ctx }/css/dlifestyle/sectionparent.css" />
<link type="text/css" rel="stylesheet"
	href="${ctx }/css/dlifestyle/admin.css" />
<section>
	<div style="height: 40px; line-height: 40px;">
		<div class="forword_area"></div>
		<div class="location">当前位置：${sessionScope.currcent_position}</div>
	</div>
	<hr>
	<div class="panel panel-default" style="height:auto">
		<div class="editTitle">
			<div style="height: 41px; width: 190px; float: left;">
				<img style="float: left; margin-left: 20px; margin-top: 8px;"
					src="${ctx}/images/new_edit.png" />
				<h4>订单商品详细信息</h4>
			</div>
			<div>
				<a style="float: right; margin-right: 20px; margin-top: -2px;"
					title="关闭" onclick="cancel();"><img
					src="${ctx}/images/new_close.png" /></a>
			</div>
		</div>
		<div class="form" style="min-height: 350px;">
			<div class="itemEdit">
				<span class="col-sm-1 editlableEdit">商品名称：</span>
				<div class="flEdit">
					<input class="controlEdit" value="${goodsInfo.name }" type="text"
						class="text" maxlength="20" readonly="readonly" />
				</div>
			</div>
			<div class="itemEdit">
				<span class="col-sm-1 editlableEdit">商品规格：</span>
				<div class="flEdit">
					<input class="controlEdit" value="" type="text" class="text"
						maxlength="20" readonly="readonly" />
				</div>
			</div>
			<div class="itemEdit">
				<span class="col-sm-1 editlableEdit">商品分类名称：</span>
				<div class="flEdit">
					<input class="controlEdit" value="${goodsCategory.name }"
						type="text" class="text" maxlength="20" readonly="readonly" />
				</div>
			</div>
			<div class="itemEdit">
				<span class="col-sm-1 editlableEdit">店铺名称：</span>
				<div class="flEdit">
					<input class="controlEdit" value="${shopInfo.name }" type="text"
						class="text" maxlength="20" readonly="readonly" />
				</div>
			</div>
			<div class="itemEdit">
				<span class="col-sm-1 editlableEdit">市场价：</span>
				<div class="flEdit">
					<input class="controlEdit" value="${goodsInfo.marketPrice }元"
						type="text" class="text" maxlength="20" readonly="readonly" />
				</div>
			</div>
			<div class="itemEdit">
				<span class="col-sm-1 editlableEdit">商品单价：</span>
				<div class="flEdit">
					<input class="controlEdit" value="${goodsInfo.price }元" type="text"
						class="text" maxlength="20" readonly="readonly" />
				</div>
			</div>
			<div class="itemEdit">
				<span class="col-sm-1 editlableEdit">商品单位：</span>
				<div class="flEdit">
					<input class="controlEdit" value="${goodsInfo.unit }" type="text"
						class="text" maxlength="20" readonly="readonly" />
				</div>
			</div>
			<div class="itemEdit">
				<span class="col-sm-1 editlableEdit">商品总价：</span>
				<div class="flEdit">
					<input class="controlEdit"
						value="${orderDetailInfo.amount * goodsInfo.price - orderDetailInfo.couponPrice}元"
						type="text" class="text" maxlength="20" readonly="readonly" />
				</div>
			</div>
			<div class="itemEdit">
				<span class="col-sm-1 editlableEdit">购买数量：</span>
				<div class="flEdit">
					<input class="controlEdit" value="${orderDetailInfo.amount }"
						type="text" class="text" maxlength="20" readonly="readonly" />
				</div>
			</div>
			<div class="itemEdit">
				<span class="col-sm-1 editlableEdit">优惠金额(元)：</span>
				<div class="flEdit">
					<input class="controlEdit" value="${orderDetailInfo.couponPrice}元"
						type="text" class="text" maxlength="20" readonly="readonly" />
				</div>
			</div>
			<%-- <div class="itemEdit">
										<span class="col-sm-1 editlableEdit">赠送积分：</span>
										<div class="flEdit">
											<input class="controlEdit"  value="${orderInfo.giveIntegral }分" type="text"  class="text" maxlength="20" readonly="readonly"/>
										</div>
									</div>
									<div class="itemEdit">
										<span class="col-sm-1 editlableEdit">花费积分：</span>
										<div class="flEdit">
											<input class="controlEdit"  value="${orderInfo.costIntegral }分" type="text"  class="text" maxlength="20" readonly="readonly"/>
										</div>
									</div> --%>

			<div class="itemEdit">
				<span class="col-sm-1 editlableEdit">商品类型：</span>
				<div class="flEdit">
					<c:choose>
						<c:when test="${goodsInfo.type == 1}">
							<input class="controlEdit" value="正常商品" type="text" class="text"
								maxlength="20" readonly="readonly" />
						</c:when>
						<c:when test="${goodsInfo.type == 2}">
							<input class="controlEdit" value="积分商品" type="text" class="text"
								maxlength="20" readonly="readonly" />
						</c:when>
						<c:when test="${goodsInfo.type == 3}">
							<input class="controlEdit" value="秒杀商品" type="text" class="text"
								maxlength="20" readonly="readonly" />
						</c:when>
					</c:choose>
				</div>
			</div>

			<div class="itemEdit">
				<span class="col-sm-1 editlableEdit">商品状态：</span>
				<div class="flEdit">
					<c:choose>
						<c:when test="${goodsInfo.state == 0}">
							<input class="controlEdit" value="正常" type="text" class="text"
								readonly="readonly" />
						</c:when>
						<c:when test="${goodsInfo.state == 1}">
							<input class="controlEdit" value="下架" type="text" class="text"
								readonly="readonly" />
						</c:when>
						<c:when test="${goodsInfo.state == 2}">
							<input class="controlEdit" value="删除" type="text" class="text"
								readonly="readonly" />
						</c:when>
					</c:choose>
				</div>
			</div>
		</div>
		<div class="itemEdit"
			style="padding-top: 10px; background-color: #FDFDFD;">
			<div style="text-align: center;">
				<button class="buttonCancle" onclick="cancel();"
					onmouseover="mouseOver()" onmouseleave="mouseLeave()">返回</button>
			</div>
		</div>
	</div>
	<%@include file="/views/common/footer.jsp"%>
</section>
<script type="text/javascript">
	var ctx = '${ctx}';
	setCtx(ctx);
</script>
<script type="text/javascript">
	function cancel() {
		loadContent("/orderInfo/orderInfoList");
	}
	function mouseOver() {
		$("button").removeClass("buttonCancle");
		$("button").addClass("buttonEdit");
	}
	function mouseLeave() {
		$("button").removeClass("buttonEdit");
		$("button").addClass("buttonCancle");
	}
</script>
